package vcfvcardprj;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class mblFetchBase  {

	public static boolean isChinese(String str) {
		String regEx = "[\u4e00-\u9fa5]";
		Pattern pat = Pattern.compile(regEx);
		Matcher matcher = pat.matcher(str);
		boolean flg = false;
		if (matcher.find())
			flg = true;
	
		return flg;
	}

	protected boolean ishanzi(char cur_char2) {
	
		return isChinese(String.valueOf(cur_char2));
	}

	protected boolean isnum(char cur_char2) {
		String str = String.valueOf(cur_char2);
		return isnum(str);
	}

	protected boolean isnum(String str) {
		for (int i = str.length(); --i >= 0;) {
			if (!Character.isDigit(str.charAt(i))) {
				return false;
			}
		}
		return true;
	}

	public mblFetchBase() {
		super();
	}

}